package ${package}.modules.${moduleName}.dto<#if subModuleName??>.${subModuleName}</#if>;

import com.fasterxml.jackson.annotation.JsonFormat;
import ${package}.common.utils.DateUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
<#list importList as i>
import ${i!};
</#list>

/**
* ${tableComment}
*
* @author ${author} ${email}
* @since ${version} ${date}
*/
@Data
@Schema(description = "${tableComment}")
public class ${ClassName}DTO implements Serializable {
private static final long serialVersionUID = 1L;

<#list fieldList as field>
<#if field.fieldComment!?length gt 0>
    /** ${field.commentAndDict} */
    @Schema(description = "${field.commentAndDict}")
</#if>
<#if field.formType == 'date'>
    @JsonFormat(pattern = DateUtils.DATE_PATTERN)
</#if>
<#if field.formType == 'datetime'>
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
</#if>
    private ${field.attrType} ${field.attrName};
</#list>

}
